package com.xunfang.utils;

import java.util.List;

/**
 * @Author lss
 * @CreateTime 2024/6/20
 * @Description
 * List<Student>  分页工具类
 */
public class PageResult<T> {


    //数据
    private List<T> dataList;
    //数据总条数
    private int totalSize;

    public PageResult() {}

    public List<T> getDataList() {
        return dataList;
    }

    public void setDataList(List<T> dataList) {
        this.dataList = dataList;
    }

    public int getTotalSize() {
        return totalSize;
    }

    public void setTotalSize(int totalSize) {
        this.totalSize = totalSize;
    }

    @Override
    public String toString() {
        return "PageResult{" +
                "dataList=" + dataList +
                ", totalSize=" + totalSize +
                '}';
    }

}
